// 格式化 用户权限数据
import {powerStatus} from '@/components/ivew_conf/power/index'

export default (ctx, next) =>{
    let resData = ctx.params;
    let cache = new powerStatus()
    
    if(resData.acl){

        resData.acl.forEach(key =>{
                cache[key] = true;
        })
        
        resData['acl'] = cache;
    }

    next()
}